import java.io.*;
import java.util.*;
/**
 * (class = [Choose an appropriate name - should start with a capital letter])
 
   Write a program to do something interesting using an infinite while
   loop.  Use *string comparison* to break out of the loop.
 
 * 
 * @author Amrita Mukherjee
 * @version 16/10/2012
 */
public class InfiniteWhileLoop
{
    public static void main(String[] args)
    {
       String s1 = "rocket";
       String s2 = "ROCKET"; 
       String s3 = s2.toLowerCase();
       
        while(s1 != s3){
            System.out.println("This is an infinite while loop");
            if(s1.equals(s3)){
                System.out.println("I am able to break the infinite loop");
                break;
            }
        }
    }
}
/*
 * my test session 
 * I am able to break the infinite loop

 * 
 */